package top.mayyd.zuuldemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import top.mayyd.zuuldemo.fillter.LoginFillter;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableZuulProxy //开启Zuul 网关功能
@EnableEurekaClient
public class ZuulDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZuulDemoApplication.class, args);
    }

    @Bean
    public LoginFillter loginFillter() {
        return new LoginFillter();
    }
}
